import request from '@/router/axios';

//厂级QRCI上升规则
export const upruleList = (yearAndMonth) => {
    return request({
      url: '/api/blade-xy-big-screen/qrci/uprule/list',
      method: 'get',
      params: {
        yearAndMonth
      }
    })
}

//工厂QRCI状态跟踪矩阵
export const trackList = (year) => {
  return request({
    url: '/api/blade-xy-big-screen/qrci/track/list',
    method: 'get',
    params: {
      year
    }
  })
}

//厂级QRCI触发点日跟踪
export const trackTrackData = (yearAndMonth) => {
  return request({
    url: '/api/blade-xy-big-screen/qrci/track/trackData',
    method: 'get',
    params: {
      yearAndMonth
    }
  })
}

//厂级QRCI任务分配
export const trackScreenData = (yearAndMonth) => {
  return request({
    url: '/api/blade-xy-big-screen/qrci/task/screenData',
    method: 'get',
    params: {
      yearAndMonth
    }
  })
}

//QRCI详细接口
export const tractdatailSelectByCode = (qrciCode) => {
  return request({
    url: '/api/blade-xy-big-screen/qrci/tractdatail/selectByCode',
    method: 'get',
    params: {
      qrciCode
    }
  })
}
















//库存水平描述接口
export const stockdescriptionDetail = (year, month, kpi) => {
    return request({
      url: '/api/blade-xy-big-screen/stockdescription/detail',
      method: 'get',
      params: {
        year,
        month,
        kpi
      }
    })
}

//未达成指标原因
export const stockreasonList = (year, month) => {
    return request({
      url: '/api/blade-xy-big-screen/stockreason/list',
      method: 'get',
      params: {
        year,
        month
      }
    })
}






















  

export const targetInfoStatistic = (params) => {//date和parentType
    return request({
        url: '/api/blade-xy-big-screen/targrtinfo/targetInfoStatistic',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const targetHistogram = (params) => {//date和type
    return request({
        url: '/api/blade-xy-big-screen/targrtinfo/targetHistogram',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const targetrecordList = (params) => {//yearAndMonth type
    return request({
        url: '/api/blade-xy-big-screen/targetrecord/list',
        method: 'get',
        params: {
            ...params,
        }
    })
}






